class Student(object):
    def __init__(self, name, score):
        self.name = name
        self.score = score
    def get_grade(self): 
        if self.score<0 or self.score>100:
            raise ValueError('self.score is %s' % self.score)
        if self.score >= 80:
            return 'A'
        if self.score >= 60:
            return 'B'
        return 'C'
from html.parser import HTMLParser
from html.entities import name2codepoint
class MyHTMLParser(HTMLParser):

    def handle_starttag(self, tag, attrs):
        #print('<%s>' % tag)
        pass

    def handle_endtag(self, tag):
        #print('</%s>' % tag)
        pass

    def handle_startendtag(self, tag, attrs):
        #print('<%s/>' % tag)
        pass

    def handle_data(self, data):
        #print(data)
        pass
    def handle_comment(self, data):
        #print('<!--', data, '-->')
        pass

    def handle_entityref(self, name):
        print('&%s;' % name)
        pass

    def handle_charref(self, name):
        print('&#%s;' % name)
        pass
